<?php
  
 
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
//默认首页
Route::get('/', function () {
	$id = DB::table('notice')->max('NoticeID')-3;
	// dd($id);
	$res = DB::table('notice')->where('NoticeID','>',$id)->get();
	// dd($res);
    return view('Layout/shouye',['res'=>$res]);

});
//==============登录=================
Route::controller('/login','LoginController');

Route::get('/Layout/shouye', function () {
    return view('Layout/shouye');

});

//创建路由组
Route::group(['middleware'=>'login'],function(){

	//隐式路由

//类别添加
Route::controller('/Proclamation','ProclamationController');

//隐式路由

//类别添加
Route::controller('/Proclamation','ProclamationController');
//执行添加
Route::controller('/Notice/Notice','NoticeController');
//办公用品
Route::controller('/OfficeSupplies','OfficeSuppliesController');
//用品信息
Route::controller('/Lzk/Goods','GoodsController');
//缺货单
Route::controller('/Lzk/stock','StockController');
//会议室
Route::controller('/MeetingRoom','MeetingController');
//会议室预约
Route::controller('/Reservation','ReservationController');
//车辆管理

Route::controller('/CarManagement','CarController');


	//类别添加
	Route::controller('/Proclamation','ProclamationController');
	//执行添加
	Route::controller('/Notice/Notice','NoticeController');
	//办公用品
	Route::controller('/OfficeSupplies','OfficeSuppliesController');
	//用品信息
	Route::controller('/Lzk/Goods','GoodsController');
	//缺货单
	Route::controller('/Lzk/stock','StockController');
	//会议室
	Route::controller('/MeetingRoom','MeetingController');
	//会议室预约
	Route::controller('/Reservation','ReservationController');
	//车辆管理

	Route::controller('/CarManagement','CarController');
	//出车记录
	Route::controller('/GoCar','GoCarController');
	//员工车辆
	Route::controller('/CarManagement','CarController');
	//日程安排
	Route::controller('/Lzk/Schedule','ScheduleController');
	//个人日志
	Route::controller('/Lzk/Log','LogController');
	//员工日志
	Route::controller('/Lzk/PerLog','PerLogController');
	//合同
	Route::controller('/Lzk/Contract','ContractController');
	//人事合同
	Route::controller('/Lzk/PersonContract','PersonContractController');
	Route::controller('/Vehicle','VehicleController');
	//出车记录
	Route::controller('/GoCar','GoCarController');
	//员工车辆
	Route::controller('/CarManagement','CarController');
	//日程安排
	Route::controller('/Lzk/Schedule','ScheduleController');
	//个人日志
	Route::controller('/Lzk/Log','LogController');
	//合同
	Route::controller('/Lzk/Contract','ContractController');
	//人事合同
	Route::controller('/Lzk/PersonContract','PersonContractController');



	//==============================人事管理===============
	//隐式控制器
	//=======员工档案====
	Route::controller('Personnel/Person','PersonController');
	//=======请假申请=====
	Route::controller('Personnel/Leave','LeaveController');
	//=======职位调整申请=====
	Route::controller('Personnel/Adjust','AdjustController');
	//=======招聘=====
	Route::controller('Personnel/Recruit','RecruitController');

	//=======离职申请=====
	Route::controller('Personnel/Leaveoffice','LeaveofficeController');
	//=======绩效管理=====
	Route::controller('Personnel/Performance','PerformanceController');
	//==============社保管理========
	Route::controller('Personnel/Socialinsurance','SocialinsuranceController');
	//=======工资管理======
	Route::controller('Personnel/Money','MoneyController');
	//=======员工培训======
	Route::controller('Personnel/Training','TrainingController');


	//===============部门===================
	Route::controller('/department/department','DepartmentController');


	//岗位
	Route::controller('/department/post','PostController');

	//权限
	Route::controller('/department/privilege','PrivilegeController');

	//角色
	Route::controller('/department/role','RoleController');

	//密码
	Route::controller('/system/pass','PassController');





	//===============菜单================
	Route::controller('/cate','CateController');


	//=================分组===================
	Route::controller('/group','GroupController');

	//通讯录
	Route::controller('/phone','PhoneController');
	//邮箱
	Route::controller('/email','EmailController');

	//================审批=========================
	//职位调整审批
	Route::controller('/allow/adjusts','AdjustsController');
	//离职审批
	Route::controller('/allow/loffice','LofficeController');
	//请假审批
	Route::controller('/allow/leaves','LeavesController');


});